<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
.teris{display:block;margin:0 auto;border:1px solid orange;}
</style>
<script charset="utf-8" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
</head>

<body>
<canvas id="myCanvas" width="240" height="400" class="teris"></canvas>
<span id="hint"></span>
<script type="text/javascript" charset="utf-8" src="a.js"></script>
</body>
</html>